@extends('Layout/adminBase')
@section('css')
<link rel="stylesheet" type="text/css" href="{{asset('/bootstrap/css/bootstrap.min.css')}}">
<style type="text/css">
    tr{
        text-align: center;
    }
    tr th{
         text-align: center;
    }
</style>
@endsection
@section('body')

<div id="msg">
	@include('Common/tip')
</div>

<div class='container'>
    
    <table class="table table-condensed table-bordered table-striped">
        <caption>积分商品</caption>
        <thead>
            <tr>
                <th>序号</th>
                <th>用户名</th>
                <th>商品名</th>
                <th>订单号</th>
                <th>生成时间</th>
                <th>数量</th>
                <th>收件人</th>
                <th>收件人电话</th>
                <th>收货地址</th>
                <th>总积分</th>
                <th>订单状态</th>
                <th width="20%" align="center">操作</th>
            </tr>
        </thead>
        <tbody>
        @foreach ($order as $k => $v)
            <tr>
                <td>{{$k+1}}</td>
                <td>{{$v->name}}</td>
                <td>{{$v->ig_name}}</td>
                <td>{{$v->order_number}}</td>
                <td>{{$v->generation_time}}</td>
                <td>{{$v->number}}</td>
                <td>{{$v->consignee}}</td>
                <td>{{$v->phone}}</td>
                <td>{{$v->address}}</td>
                <td>{{$v->integral_price}}</td>
                <td>{{$state[$v->order_status]}}</td>
                
                <td>
                    <a class="btn btn-default-sm" href="{{url('/admin/integralOrder/orderState')}}/{{$v->id}}">修改</a>
                   	
                </td>
            </tr>
        @endforeach
        </tbody>
    </table>
    {{ $order->links() }}
</div>
@endsection
